import request from '../utils/request'  // 导入的是直接可调用的函数
export default{
  userRegister(phone,code,password,password2){
    return request({
      url:'/user/register',
      method:'post',
      data:{
        phone:phone,
        code:code,
        password:password,
        password2:password2
      }
    })
  },
  userLogin(phone,password){
    console.log(phone)
    console.log(password)
    return request({
      url:'/user/login',
      method:'post',
      data:{
        phone:phone,
        password:password
      }
    })
  },
  loginOut(){
    return request({
      url:'/user/loginOut',
      method:'post'
    })
  },
  getUserInfo(){
    return request({
      url:'/user/getUserInfo',
      method:'post'
    })
  }
}